package zhengqc.common;

public class Pair<A extends Comparable<A>, B> implements Comparable<Pair<A, B>> {
    public A first;
    public B second;

    public Pair(A first, B second) {
        this.first = first;
        this.second = second;
    }

    @Override
    public String toString() {
        return "Pair: {" + "first=" + first + ", second=" + second + '}';
    }

    @Override
    public int compareTo(Pair<A, B> op) {
        return this.first.compareTo(op.first);
    }
}
